<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
{{message}}
    <span v-bind:title="message">
        悬浮查看信息
    </span>
    <input :value="a"></input>
    <select v-model="select">
        <option disabled>---请选择---</option>
        <option>a</option>
        <option>b</option>
        <option>c</option>
    </select>
    组件：<my-component v-for="item in items" v-bind:index="item"></my-component>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>

    // 定义组件
    Vue.component("my-component",{
        props: ['index'],
        template: '<li>{{index}}</li>'
    });

    var vm = new Vue({
        el: "#app",
        data: {
            message:"hello vue!",
            select: "a",
            items: ["张三","李四","王五"],
            a: "5555555"
        }
    });



</script>
</body>
</html>